package com.orderplus.opshop.synces.service.product;

import com.baomidou.mybatisplus.extension.service.IService;
import com.orderplus.opshop.core.data.response.ResponseData;
import com.orderplus.opshop.synces.entity.product.Product;

import java.util.List;
import java.util.Map;

public interface ProductService extends IService<Product> {
	ResponseData<Boolean> batchAddProductToEs(String tableName, String primaryKey, List<Map<String, Object>> list);

	ResponseData<Boolean> addProductToEs(String tableName, String primaryKey, Map<String, Object> map);

	ResponseData<Boolean> updateProductToEs(String tableName, String primaryKey, Map<String, Object> map);

	ResponseData<Boolean> deleteProductToEs(String tableName, Map<String, Object> map);

	ResponseData<Boolean> syncToEsByProduct(String fromTabe, String targetTable, String primaryKey, int size);
}
